import { Type } from "class-transformer";
import { IsNotEmpty, IsOptional } from "class-validator";

export class CreateGoodTypeDto {
    @IsNotEmpty()
    name: string

    @IsOptional()
    @Type(() => Number)
    parent?: number
}
